cmake_minimum_required(VERSION 3.16.0)
project(
    Tutorial
    VERSION 0.0.1
    DESCRIPTION "a demo of cmake"
    HOMEPAGE_URL "https://gitee.com/scarypie/example-cmake-demo"
    LANGUAGES CXX
)

# Language C++ 17
set(CMAKE_CXX_STANDARD 17)

# Environement settings
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CORE_DIR ${CMAKE_SOURCE_DIR}/src/core)
set(APP_DIR ${CMAKE_SOURCE_DIR}/src/app)
set(SDL_DIR C:/SDL3/x86_64-w64-mingw32)     # SDL3
set(GLM_DIR ${PROJECT_SOURCE_DIR}/lib/glm)  # glm

# Add submodules
add_subdirectory(src/core)
add_subdirectory(src/app)